# Calling convention:
# -> rdi, rsi, rdx, rcx, r8d, r9d, [stack] ->
# rax must be zeroed
# sym module use R_1 register

.text
         jmp    data
code:
         popq   %rdi                 # Restore library
         movq   $1,  %rsi            # RTLD_NOW
         call   %rbx                 # Call __libc_dlopen_mode
         int3                        # Revert
data:
         call   code
library:
.string "test.so"
